IContentManagerSetPanoramicPredefinedPosition Method |
Sets the predefined position of a panoramic camera. This method automatically changes the panoramic
mode to "Cropped" and sets the predefined position. If the image pane displays a video of a camera that is not
a panoramic camera then the call is ignored.
Namespace: Bosch.Vms.SDKAssembly: Bosch.Vms.SDK (in Bosch.Vms.SDK.dll) Version: 1.9.0.0
Syntaxvoid SetPanoramicPredefinedPosition(
ImagePane pane,
int predefinedPositionNumber
)
Parameters
- pane ImagePane
- Image pane that displays a video of a panoramic camera.
- predefinedPositionNumber Int32
- The number of a configured predefined position.
Exceptions| Exception | Condition |
|---|
| SdkException |
Is thrown when the given pane is invalid, a predefined position
with the given predefinedPositionNumber doesn't exist
or the pane doesn't display a video of a panoramic camera.
|
Example
try
{
IContentManager contentManager = this.Api.ContentManager;
ImagePane pane = new ImagePane(1, 1);
int predefinedPositionNumber = 3;
contentManager.SetPanoramicPredefinedPosition(pane, predefinedPositionNumber);
this.Logger.InfoFormat("The predefined position {0} is set", predefinedPositionNumber);
}
catch(SdkException e)
{
this.Logger.Error(e);
}
See Also